package com.xjy.headfirst.状态模式;

/**
 * decription:
 *
 * @author 辛纪元
 * @since 2022-07-20
 */

public class NoQuarterState implements State{

    GumballMachine gumballMachine;

    static final int SOLD_OUT = 0;

    static final int NO_QUARTER = 1;

    static final int HAS_QUARTER = 2;

    static final int SOLD = 3;

    public NoQuarterState(GumballMachine gumballMachine){
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        gumballMachine.setState(gumballMachine.getHasQuarterState());
    }

    @Override
    public void ejectQuarter() {

    }

    @Override
    public void turnCrank() {

    }

    @Override
    public void dispense() {

    }



}
